//
//  DetailView.swift
//  FullScreenCover
//
//  Created by alanzhangg on 2023/6/11.
//

import SwiftUI

struct DetailView: View {
    @Binding var row: Row
    var animationID: Namespace.ID
    ///view properties
    @Environment(\.dismiss) private var dismiss
    
    var body: some View {
        VStack{
            Rectangle()
                .fill(row.color.gradient)
                .frame(width: 200, height: 200)
            
        }
        .frame(width: .infinity, height: .infinity)
        .overlay(alignment: .topLeading) {
            Button(action: {
                dismiss()
            }, label: {
                Image(systemName: "xmark.circle.fill")
                    .font(.title)
                    .foregroundColor(.primary)
            })
        }
    }
}

